projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772470f
)
tests: Use testing API instead of duplicating it
author
Benjamin Otte
<otte@redhat.com>
Wed, 15 May 2013 13:25:05 +0000
(15:25 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 15 May 2013 13:33:24 +0000
(15:33 +0200)
gtk/tests/accessible.c
patch
|
blob
|
history
diff --git
a/gtk/tests/accessible.c
b/gtk/tests/accessible.c
index b44cb140a7f8260b3c98468a9137daec160f9fbb..03668c32ae47940dadc359c68be5c22cc82edb64 100644
(file)
--- a/
gtk/tests/accessible.c
+++ b/
gtk/tests/accessible.c
@@
-21,17
+21,14
@@
test_type (GType t)
int
main (int argc, char *argv[])
{
- GType *tp;
- g
int i
;
+
const
GType *tp;
+ g
uint i, n
;
gtk_init (&argc, &argv);
- tp = g_new0 (GType, 1000);
-#undef GDK_WINDOWING_X11
-#include "../gtktypefuncs.c"
- *tp = 0;
+ tp = gtk_test_list_all_types (&n);
- for (i = 0;
tp[i]; i
++)
+ for (i = 0;
i < n; n
++)
test_type (tp[i]);
return 0;